@import (reference) "~weaver-mobile/dist/weaver-mobile.less";
@import (reference) "./base.less";
@import './icon.less';

html, body, #root {
  width: 100%;
  height: 100%;
  background: @proj-main-color1;
}


* {
  font-family: 'Microsoft YaHei', "微软雅黑", "Poppins", serif;
  padding: 0;
  margin: 0;
}

.am-search {
  border-bottom: none;
}

.loading {
  height: 80%;
  width: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-tab {
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 99;
}

.tab-tint-color {
  color: @brand-primary;
}

.prj-content {
  padding-top: 43.5*@fx;
}

.main-enter-container {
  .am-tabs-tab-bar-wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9;
  }

  height: 100%;
}

.proj-container {
  width: 100%;
  height: 100%;
  background: @proj-main-color1;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.proj-list-box {
  background: @proj-ground-color;

  &:not(:last-child) {
    padding-bottom: @h-spacing-md;
  }
}

.proj-statistic-wrapper {
  width: 100%;
  -webkit-overflow-scrolling: touch;
  z-index: 9;
  position: fixed;
  top: 0;
  bottom: 50px;
  overflow-y: scroll;
}

.proj-statistic-wrapper-child {

}

.proj-list-top-bar {
  .flex;
  .flex-space-between;
  .flex-align-center;
  padding: 10*@fx 2*@h-spacing-md;
  background: @fill-base;
  padding: 10*@fx 2*@h-spacing-md 10*@fx @h-spacing-lg;
  background: @proj-main-color1;
  border-bottom: @border-width-sm solid @proj-border-color;
}

.title-right-line {
  width: 3*@fx;
  height: 16*@fx;
  -webkit-border-radius: 1*@fx;
  -moz-border-radius: 1*@fx;
  border-radius: 1*@fx;
  .background-linearTo2(to top, @brand-primary, fade(@brand-primary, 30%), @brand-primary)
}

.title-right-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: -6px;
  font-size: 12px;
  color: @proj-placeholder-color;
}

.proj-list-content {
  background: @proj-main-color1;
}

.proj-nav-bar-icon {
  width: 24*@fx;
  height: 22*@fx;
  font-size: 24*@fx;
  margin-left: 0*@fx;
  margin-top: -3*@fx;
}

.template-list-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 @h-spacing-lg;
}

.template-list-wrapper {
  height: 100%;
  position: relative;
  overflow: auto;
}

.template-avatar-box {
  float: left;
  width: 45*@fx;
  height: 100%;
  text-align: center;
}

.template-avatar-box-fly {
  float: left;
  width: 45*@fx;
  height: 100%;
  text-align: center;
  margin-left: -100%;
  margin-top: @v-spacing-lg;
}

.template-circle-box-fly {
  width: 50*@fx;
  height: 100%;
  text-align: center;
  position: absolute;
  right: 0;
  top: 0;
  .flex;
  .flex-align-center;
  .flex-justify-end;
}

.t-t-content-fly {
  height: 100%;
  width: 100%;
  padding: 0 32*@fx 0 65*@fx;
  overflow-x: hidden;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.t-t-circle-box-fly {
  .flex;
  .flex-align-center;
  .flex-justify-center;
  width: 50*@fx;
  height: 100%;
  text-align: center;
  position: absolute;
  left: 0;
  top: 0;
}

.t-t-template-item {
  font-size: @font-size-base;
  margin-top: 2*@fx;
  .flex;
  .flex-align-center;
  .flex-justify-start;
}

.t-t-task-rate {
  height: 100%;
  position: absolute;
  right: @h-spacing-md;
  top: 0;
  .flex;
  .flex-align-start;
}

.t-t-overtime {
  color: @brand-error;
  position: absolute;
  right: @h-spacing-md;
}

.template-avatar {
  img {
    width: 42*@fx;
    height: 42*@fx;
    margin-top: -1*@fx;
    margin-left: -1*@fx;
  }
}

.template-content-fly {
  height: 100%;
  width: 100%;
  padding: 0 55*@fx 0 55*@fx;
  float: left;
  overflow-x: hidden;
}

.template-content {
  height: 100%;
  margin-left: 60*@fx;
  overflow-x: hidden;
}

.template-content-no-img {
  height: 100%;
  overflow-x: hidden;
}

.doc-content-head {
  color: @color-text-paragraph;
  font-size: @font-size-subhead;
  word-break: break-all;
  white-space: normal;
}

.doc-content-text, .doc-content-text span {
  color: @color-text-placeholder;
  font-size: @font-size-caption-sm;
  padding-top: @v-spacing-sm;
}

.doc-content-text-left {
  margin-right: @h-spacing-md;
}

.template-title {
  &, span {
    font-size: @font-size-base;
    font-weight: bold;
  }
}

.template-item {
  font-size: @font-size-base;
  margin-top: 2*@fx;
  .flex;
  .flex-align-center;
  .flex-justify-start;
}

.template-item-icon {
  color: @brand-primary;
  margin-right: @h-spacing-md;
  font-size: 18*@fx;
}

.template-item-text {
  font-size: @font-size-caption-sm;
}

.template-btn-apply {
  position: absolute;
  right: @h-spacing-lg;
  bottom: @v-spacing-lg;

  width: 90*@fx;
  height: 25*@fx;
  line-height: 23*@fx;
  border-radius: 4*@fx;
  background-color: @proj-main-color1;
  text-align: center;
  border: @border-width-md solid @brand-primary;
  color: @brand-primary
}

.template-btn-apply-active {
  position: absolute;
  right: @h-spacing-lg;
  bottom: @v-spacing-lg;

  width: 90*@fx;
  height: 25*@fx;
  line-height: 23*@fx;
  border-radius: 4*@fx;
  background-color: @proj-main-color1;
  text-align: center;
  border: @border-width-md solid @brand-primary;
  color: @brand-primary;
}

.template-btn-icon {
  font-size: @font-size-base;
  margin-right: 4*@fx;
  font-weight: 500;
}

.active-user-box {
  padding: 0;
}

.active-user-name {
  margin-right: @h-spacing-md;
  color: @brand-primary;
}

.active-tags-icon {
  float: right;
  font-size: 18*@fx;
  color: @color-text-secondary;
}

.flag-tags-icon {
  color: @brand-primary;
  font-size: 15*@fx;
  margin-left: @h-spacing-sm;
}

.active-tags-icon:after {
  content: "";
  zoom: 1;
  clear: both;
}

.active-content-time {
  font-size: @font-size-caption-sm;
  color: @proj-placeholder-color;
}

.active-content-proj {
  color: @brand-primary;
  padding: 0;
  //padding-right: 20*@fx;
  font-size: @font-size-base;
  padding-top: 8 @fx;

  & > div {
    z-index: 9;
  }
}

.active-content-text {
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  padding: 8*@fx 0;
  padding-right: 20*@fx;
}

.active-bottom-tools {
  overflow: hidden;
  margin-top: @v-spacing-lg;
}


.template-btn-bottom {
  width: 90*@fx;
  height: 25*@fx;
  line-height: 23*@fx;
  border-radius: 4*@fx;
  background-color: @proj-main-color1;
  text-align: center;
  border: @border-width-md solid @brand-primary;
  color: @brand-primary;
  float: right;
  margin-left: @h-spacing-lg;
  .flex;
  .flex-align-center;
  .flex-justify-center;
}

.template-btn-bottom-active {
  border: @border-width-md solid @brand-primary-tap;
  color: @brand-primary-tap;
}

.t-p-head {
  width: 100%;
  border-left: 3*@fx solid @brand-primary;
  padding-left: @h-spacing-md;
  position: relative;
  box-sizing: border-box;

  .t-p-title {
    font-weight: bold;
    padding: 0;
    margin: @v-spacing-sm 0;
  }

  .t-p-state {
    position: absolute;
    right: 0;
    top: 0;
    height: 22*@fx;
    line-height: 22*@fx;
    text-align: center;
    padding: 0 @h-spacing-md;
    color: @proj-main-color1;
    background: @proj-ground-color;
    font-size: @font-size-caption-sm;
    -webkit-border-radius: 11*@fx;
    -moz-border-radius: 11*@fx;
    border-radius: 11*@fx;
  }

  .t-p-state-0 {
    color: @proj-main-color1;
    background: @icon-combined-shape;
  }

  .t-p-state-5 { //立项批准
    color: @proj-main-color1;
    background: #55b1f9;
  }

  .t-p-state-6 { //待审批
    color: @proj-main-color1;
    background: #ff5500;
  }

  .t-p-state-2 { //延期
    color: @proj-main-color1;
    background: #ffbb32;
  }

  .t-p-state-1 { //正常
    color: @proj-main-color1;
    background: #64d16f;
  }

  .t-p-state-3 { //
    color: @proj-main-color1;
    background: #716bff;
  }

  .t-p-state-4 { //
    color: @proj-main-color1;
    background: fade(#009efb, 60%);
  }
}

.t-p-content {
  .t-p-item {
    padding-left: @h-spacing-lg;
    line-height: 22*@fx;
    .flex;
    .flex-align-center;
  }

  .t-p-dot {
    display: inline-block;
    width: 5*@fx;
    height: 5*@fx;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: @brand-primary;
    margin-right: @h-spacing-md;
  }

  .t-p-text {
    display: inline-block;
    font-size: @font-size-caption-sm;
    line-height:1.4;
  }
}


.proj-list-top-title {
  font-size: @font-size-caption;
  color: @proj-title-color;
}

.proj-list-none {
  display: block;
  height: 40*@fx;
  line-height: 40*@fx;
  text-align: center;
  font-size: @font-size-caption-sm;
  background: @fill-base;
  color: @color-text-secondary;
}

.home-wrapper {
  background: @proj-ground-color;
}

.task-count-wrapper {
  padding: @v-spacing-md @h-spacing-lg;
  box-sizing: border-box;
  background: fade(@brand-primary, 30%);
}

.task-count-box {
  width: 100%;
  height: 90*@fx;
  overflow: hidden;
  background: fade(@brand-primary/1.2, 90%);
  color: @proj-main-color1;
  -webkit-border-radius: @radius-md;
  -moz-border-radius: @radius-md;
  border-radius: @radius-md;
  padding: @v-spacing-md 2*@h-spacing-lg;
  .flex;
  .flex-align-center;
  .flex-space-between;
}

.task-count-item {
  width: 33.3%;
  text-align: center;
}

.task-count-item-center {
  margin: 0 auto;
  width: 80*@fx;
  text-align: left;
}

.task-count-num-box {
  width: 100%;
  color: @color-text-base-inverse;
  margin-bottom: @v-spacing-sm;
}

.task-count-icon {
  font-size: 22*@fx;
  display: inline-block;
  margin-right: @h-spacing-sm;
}

.task-count-num {
  width: 100%;
  font-size: @font-size-heading;
}

.task-count-title {
  width: 100%;
  font-size: @font-size-caption;
  color: @color-text-base-inverse;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
}

.statistic-task-box {
  background: @fill-base;
  width: 100%;
  height: 70*@fx;
  overflow: hidden;
  -webkit-border-radius: @radius-md;
  -moz-border-radius: @radius-md;
  border-radius: @radius-md;
  padding: @v-spacing-md @h-spacing-lg;
  .flex;
  .flex-align-center;
  .flex-space-between;

  &:last-of-type {
    margin-top: -@v-spacing-lg;
  }

  .task-count-title {
    color: @color-text-secondary;
    font-size: @font-size-base;
  }

  .task-count-num {
    color: @color-text-paragraph;
    margin-top: @v-spacing-md;
  }
}

.statistics-echarts-box {
  height: 260*@hd;
  background: @fill-base;
  padding: 0 @h-spacing-lg;
}

.h-content-wrapper {
  padding-bottom: 50*@fx;
  height: 100%;
}

.proj-echarts-wrapper-gante {
  width: 100%;
  padding-top: 20*@fx;
  overflow: hidden;

}

.proj-btn-check {
  min-width: 60*@fx;
  word-break: keep-all;
  white-space: nowrap;
  padding: 0*@fx 8*@fx;
  height: 22*@fx;
  line-height: 22*@fx;
  border-radius: 11*@fx;
  margin-right: @h-spacing-md;
  color: @proj-paragraph-color;
  border: @border-width-md solid @search-bar-fill;
  background: @search-bar-fill;
}

.proj-btn-checked {
  min-width: 60*@fx;
  word-break: keep-all;
  white-space: nowrap;
  padding: 0*@fx 8*@fx;
  height: 22*@fx;
  line-height: 22*@fx;
  border-radius: 11*@fx;
  margin-right: @h-spacing-md;
  border: 1*@fx solid @brand-primary;
  color: @brand-primary;
  background: rgba(85, 177, 249, 0.1);
}

.proj-tool-box-task {
  .flex;
  .flex-justify-start;
  .flex-align-center;
  padding: 0 8*@fx;
  border-bottom: 1*@fx solid @border-color-base;
  background: @proj-main-color1;
  position: relative;
  z-index: 90;

  .proj-btn-check, .proj-btn-checked {
    margin-bottom: @v-spacing-md;
  }

  .proj-btn-checking {
    min-width: 60*@fx;
    word-break: keep-all;
    white-space: nowrap;
    padding: 0*@fx @h-spacing-md;
    height: 22*@fx;
    line-height: 22*@fx;
    border-radius: 11*@fx;
    margin-right: @h-spacing-md;
    margin-bottom: @v-spacing-md;

    color: @proj-paragraph-color;
    border: 1*@fx solid @border-color-base;
    background: @proj-main-color1;
    position: relative;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    &:after {
      content: '';
      width: 100%;
      position: absolute;
      top: 18*@fx;
      height: 13*@fx;
      background: @proj-main-color1;
      left: -1*@fx;
      z-index: 99;
      border-left: @border-width-md solid @border-color-base;
      border-right: @border-width-md solid @border-color-base;
    }
  }
}

.proj-tool-box {
  .flex;
  .flex-space-between;
  .flex-align-center;
  padding: @h-spacing-md;
  border-bottom: @border-width-md solid @border-color-base;
  background: @proj-main-color1;
  padding-top: 0;
}

.search-select {
  z-index: 90;
}

.single-foo-menu {
  position: absolute;
  z-index: 90 !important;
  width: 100%;
}

.menu-mask {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.4;
  z-index: 89;
}

.am-menu .am-flexbox .am-flexbox-item:last-child .am-list .am-list-item.am-sub-menu-item-selected .am-list-line .am-list-content,
.am-menu .am-flexbox .am-flexbox-item:first-child .am-list .am-list-item .am-list-line .am-list-content {
  font-size: @font-size-base;
}

.advanced-ready {
  color: @brand-primary !important;
}

.proj-float-btn {

  background: @brand-primary !important;
  color: @proj-main-color1 !important;;

  .proj-float-icon {
    font-size: 24*@fx;
  }
}

.form-wrapper {
  padding-bottom: 50*@fx;
}

.form-wrapper-with-btn {
  z-index: 0;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
}

.proj-button-group {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: @proj-main-color1;
  .flex;
  .flex-space-between;
  .flex-align-center;
  z-index: 998;
  height: 49px;
  overflow: visible;
}

.proj-button-cancel {
  height: 100%;
  width: 50%;
  border-radius: 0;
}

.proj-button-apply {
  height: 100%;
  width: 50%;
  border-radius: 0;
}

.proj-tab-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 45*@fx;
  z-index: 99;
}

.proj-details-info-wrapper {
  margin-top: 45*@fx;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
  background: @proj-main-color1;
}

.proj-form-browser-wrapper {
  padding-left: 15*@fx;

  .proj-form-browser-box {
    padding-right: 15*@fx;
    border-bottom: 1px solid #ddd;

    .am-list-form.line.border {
      border: none;
    }
  }
}

.floating-icon-self {
  font-size: @icon-size-xs;
}


.vm-demo-reply {
  height: 100%;
  .flex;
  .flex-dir-col;

  &-text {
    flex: 1 1;
    position: relative;

    &-contianer {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 100%;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;

      .am-rich-editor {
        background: @color-text-base-inverse;
      }

      .ql-container.ql-snow {
        border: none;
      }
    }
  }

  .wm-reply { // 需要的样式自己复写下
    .wm-reply-bar {
      background: @fill-grey-weak;

      .wm-browser {
        background: @fill-grey-weak;
      }
    }
  }
}

.prj-reply-btn-save {
  height: 40*@fx;
  line-height: 40*@fx;
  color: @proj-main-color1;
  background: fade(@brand-primary, 80%);
  border: @border-width-md solid fade(@brand-primary, 80%);
}

.prj-self-form {
  .wm-form-item-wrap {
    border-bottom: none;

    .am-list-form {
      margin-left: 15px;
      padding-right: 15px;
      border-bottom: 1px solid #ddd;

      & .am-list-form {
        margin-left: 0;
        border-bottom: none;
        padding-right: 0;
      }

      .am-list-form-body {
        margin-left: 0;
      }
    }
  }


  .am-list-form {
    margin: 0;
  }
}

.prj-data-picker-css-style {
  .am-list-item .am-list-line .am-list-content {
    max-width: 79px;
    text-overflow: inherit !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .am-list-arrow {
    visibility: hidden !important;
  }

  .am-list-item .am-list-line .am-list-extra {
    color: @proj-main-color2;
    text-align: left;
  }
}

.prj-data-picker-edit-css-style {
  .am-list-item .am-list-line .am-list-content,
  .am-list-item .am-input-label.am-input-label-5 {
    max-width: 79px;
    text-overflow: inherit !important;
    word-break: break-word !important;
    white-space: normal !important;
    margin-right: 0;
  }

  .am-list-arrow {
    position: absolute;
    right: 15px;
    color: @color-text-placeholder
  }

  .am-list-item .am-list-line .am-list-extra {
    color: @proj-main-color2;
    text-align: left;
  }

}

.tab-page-wrapper {
  height: 100%;
}

.no-right-page {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}

.proj-details-info-wrapper ,.task-progress-disabled{
  .proj-show-info {
    display: flex;
    align-items: center;
  }

  .proj-show-info .progress {
    margin-right: @h-spacing-sm;
    width: 100%;

    .am-progress-outer {
      height: 8px;
      border-radius: 8px;
    }

    .am-progress-bar {
      border: 4px solid @brand-primary;
      border-radius: 8px;
    }
  }

  .progress-text {
    font-size: 13px;
  }

  .am-list-item .am-list-line .am-list-extra {
    flex-basis: 50%
  }
}
.task-progress-disabled{
.task-progress-befSpan{
  font-size: 12*@fx;
  color: @brand-error;
}
}

/*任务筛选右侧的小圆圈*/
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra .am-radio-inner {
  visibility: hidden;
}

.wm-comment-list-container {
  padding-bottom: 0;
  border-bottom: @border-width-sm solid @proj-border-color;
}


.proj-Comment {
  .am-list-view-scrollview-content {
    .am-list-body {
      .wm-comment {
        .wm-comment-head {
          .wm-comment-head-right {
            background-color: #DFF1FF;
            color: @brand-primary;
            font-size: 12 * @hd;
            line-height: 17 * @hd;
            padding: 3 * @hd 9 * @hd;
            top: -10 * @hd;
          }
        }

        .wm-comment-content {
          .blog-unSubmit {
            text-align: center;
            padding-bottom: 18 * @hd;
            color: #868686;

            .am-icon-warning {
              position: relative;
              top: 4 * @hd;
              margin-right: 8 * @hd;
            }
          }

          .blog-supplement {
            .am-icon-blog-bujiao {
              position: relative;
              top: 3 * @hd;
            }

            > span {
              font-size: 13 * @hd;
              line-height: 18 * @hd;
              color: @brand-warning;
              margin-left: 7 * @hd;
            }
          }
        }
      }
    }
  }

  .wm-reply-wrap {
    z-index: 9999;
    position: fixed;
  }
}

.proj-photo-div {
  display: flex;
  justify-content: space-between;
  margin-top: 3*@fx;
}

.proj-photo-image {
  // width:50%;
  // padding-bottom: 50%;
  height: 0;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
}

.proj-accessory-list {
  .am-list-item .am-list-line .am-list-extra {
    flex-basis: 60%;
  }
}

.proj-accessory-link {
  text-decoration: underline;
  color: #55b1f9;
}

.am-list-form .am-list-form-header {
  padding-left: 0;
}

.tab-page-wrapper {
  .pswp__top-bar {
    top: 45px;
  }
}

